<?php

namespace app\index\validate;
use think\Validate;

class Apply extends Validate
{
    protected $rule = [
        'name'     => 'require',
        'tel'      => 'require|mobile',
    ];

    protected $message = [
        'name.require'      => '请输入姓名',
        'tel.require'       => '请输入电话',
        'tel.mobile'        => '电话号码格式不正确',
        //'captcha.captcha'  => '验证码错误',
    ];
}